package com.wzh.house.dao;

import com.wzh.house.entity.RentUserAttentionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author wzh
 * @email 1281204121@qq.com
 * @date 2022-03-22 19:04:17
 */
@Mapper
public interface RentUserAttentionDao extends BaseMapper<RentUserAttentionEntity> {

    Integer getCountByRentAndUserId(@Param("houseId") Integer houseId, @Param("userId") Integer userId);

    Integer del(@Param("rentId") Integer rentId, @Param("userId") Integer userId);

    Integer add(@Param("rentId") Integer rentId, @Param("userId") Integer userId);
}
